Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add outstanding token airdrops to REST API #9286

Conversation

edwin-greene
Copy link
Contributor

@edwin-greene edwin-greene commented Sep 6, 2024

Description:
Adds the outstanding token airdrops endpoint to the REST API.

Related issue(s):

Fixes #8276

Notes for reviewer:
Currently only supports fungible token airdrops.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@edwin-greene edwin-greene added enhancement Type: New feature rest-java Area: Java REST API labels Sep 6, 2024
@edwin-greene edwin-greene added this to the 0.114.0 milestone Sep 6, 2024
@edwin-greene edwin-greene self-assigned this Sep 6, 2024
@edwin-greene edwin-greene linked an issue Sep 6, 2024 that may be closed by this pull request
Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 93.49593% with 8 lines in your changes missing coverage. Please review.

Project coverage is 92.55%. Comparing base (307c002) to head (8c0abbc).
Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
...era/mirror/restjava/repository/JooqRepository.java 91.66% 1 Missing and 3 partials ⚠️
...edera/mirror/restjava/mapper/CollectionMapper.java 71.42% 1 Missing and 1 partial ⚠️
...a/repository/TokenAirdropRepositoryCustomImpl.java 90.90% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9286      +/-   ##
============================================
- Coverage     93.15%   92.55%   -0.61%     
- Complexity     1092     7039    +5947     
============================================
  Files           363      912     +549     
  Lines         11285    29760   +18475     
  Branches       1642     3760    +2118     
============================================
+ Hits          10513    27543   +17030     
- Misses          633     1446     +813     
- Partials        139      771     +632     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Edwin Greene <[email protected]>
@edwin-greene edwin-greene marked this pull request as ready for review September 6, 2024 21:01
@edwin-greene edwin-greene requested a review from a team September 6, 2024 21:01
Signed-off-by: Edwin Greene <[email protected]>
Signed-off-by: Edwin Greene <[email protected]>
@xin-hedera
Copy link
Collaborator

xin-hedera commented Sep 11, 2024

Pagination by serialnumber may be added later.

Can this even work?

Serial number should be in the order part so as to limit the entries in the response. If we don't support seiral number pagination, we won't have it in the next url, then wouldn't the endpoint provide incomplete response? Or duplicate info? Or even stuck and never get to the next page?

Copy link

sonarcloud bot commented Sep 16, 2024

Copy link
Member

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think we're missing corner case test coverage in the repository layer similar to what NftAllowanceRepositoryTest has. But probably we can figure out a way to have a common test framework for multi-column pagination in a follow up.

Copy link
Contributor

@jascks jascks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@xin-hedera xin-hedera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@jnels124 jnels124 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@edwin-greene edwin-greene merged commit b2349db into main Sep 16, 2024
29 checks passed
@edwin-greene edwin-greene deleted the 8276-hip-904-add-outstanding-token-airdrops-endpoint-to-rest-api branch September 16, 2024 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Type: New feature rest-java Area: Java REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HIP-904 Add Outstanding Token Airdrops endpoint to REST API
5 participants